package bookpad.common;

import java.util.List;

public class GUtil {

    public static boolean isNull(Object o) {
        if (o == null)
            return true;
        if (o instanceof String) {
            if ("".equals(((String) o).trim()))
                return true;
        }
        return false;
    }

    public static boolean isEmpty(List l) {
        if (isNull(l) || l.isEmpty())
            return true;
        return false;
    }

}
